import request from '@/utils/request'

/**
 * @description: 获取行事历清单
 * @param {*} params
 * @return {*}
 */
export function getHumCalendar(params) {
  return request({
    url: '/hum/calendar/list',
    params
  })
}

/**
 * @description: 新增行事历
 * @param {*} data
 * @return {*}
 */
export function addHumCalendarItem(data) {
  return request({
    url: '/hum/calendar/add',
    method: 'post',
    data
  })
}

/**
 * @description: 更新行事历
 * @param {*} data
 * @return {*}
 */
export function updateHumCalendarItem(data) {
  return request({
    url: '/hum/calendar/update',
    method: 'post',
    data
  })
}

/**
 * @description: 删除行事历
 * @param {*} data
 * @return {*}
 */
export function deleteHumCalendarItem(data) {
  return request({
    url: '/hum/calendar/delete',
    method: 'post',
    data
  })
}
